<div id="captcha1">
  <div class="text">
    行为验证™ 安全组件加载中
  </div>
  <div class="wait show">
    <div class="loading">
      <div class="loading-dot"></div>
      <div class="loading-dot"></div>
      <div class="loading-dot"></div>
      <div class="loading-dot"></div>
    </div>
  </div>
</div>  
<button id="btn1">登录1</button>

<div id="captcha2">
  <div class="text">
    行为验证™ 安全组件加载中
  </div>
  <div class="wait show">
    <div class="loading">
      <div class="loading-dot"></div>
      <div class="loading-dot"></div>
      <div class="loading-dot"></div>
      <div class="loading-dot"></div>
    </div>
  </div>
</div>
<button id="btn2">登录2</button>


<script src="../../js/jquery-1.8.3.min.js"></script>
<script src="./gt.js"></script>
<script src="./t2.js"></script>
<script>
  jkCaptchaFn('#captcha1', captchaObj => {
    // captchaObj.getValidate()

    $('#btn1').click(function () {
      if (!captchaObj.getValidate()) {
        alert('请通过行为验证码')
        return
      }
      alert('提交表单1')
    })
  })


  jkCaptchaFn('#captcha2', captchaObj => {
    // captchaObj.getValidate()

    $('#btn2').click(function () {

      if (!captchaObj.getValidate()) {
        alert('请通过行为验证码')
        return
      }
      alert('提交表单2')
    })
  })
</script>